<?php

namespace Addons\TODOLIST;
use Common\Controller\Addon;
defined("PROJECT_NAME") || die('DENY ACCESS');


/**
 * TODOLIST插件
 * @author Zhoujinda
 */

    class TODOLISTAddon extends Addon{

        public $info = array(
            'name'=>'TODOLIST',
            'title'=>'TODOLIST',
            'description'=>'TODOLIST',
            'status'=>1,
            'author'=>'Zhoujinda',
            'version'=>'0.1'
        );

        public function install(){
            return true;
        }

        public function uninstall(){
            return true;
        }

        //实现的admin_index钩子方法
        public function admin_index($param){
            $config = $this->getConfig();
            $this->assign('addons_config', $config);
            if($config['display']){
                $this->display('widget');
            }
        }

    }